python: xc: fix max_cpu_index sign error
authorPetre Eftime <epetre@amazon.com>
Thu, 5 Apr 2018 12:49:23 +0000 (12:49 +0000)
committerWei Liu <wei.liu2@citrix.com>
Fri, 6 Apr 2018 08:05:28 +0000 (09:05 +0100)
commit3bc9c4f98a5dea5afda3ad2aae243e88d12a7e09
tree7b84fcfc3926a4f258cb64c3b22c9a6c065dd0bd
parent9ee6308d5b9d227eba08b7a19fa660e7614e3d32
python: xc: fix max_cpu_index sign error

When 0-indexing, maximum index is num_entries - 1. The python xc library had a
sign error where the minus was replaced by a plus, making tools that depended
on it to look for CPUs that did not exist.

Signed-off-by: Petre Eftime <epetre@amazon.com>
Acked-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
tools/python/xen/lowlevel/xc/xc.c